<template>
	<view class="car-rich">
		<view class="title">详情介绍</view>
		<view class="con">
			<view class="reson" v-if="info.introduce">
				{{ info.introduce }}
			</view>
			<view class="img" v-for="(item, index) in info.detailsImg" :key="index">
				<image :src="item" mode="widthFix"></image>
			</view>
			<!-- <uv-parse :content="content"></uv-parse> -->
		</view>
	</view>
</template>

<script setup>
	import {
		ref,
		defineProps
	} from 'vue'
	defineProps({
		info: {
			type: Object,
			default: () => {
				detailsImg: []
			}
		}
	})
	const content = ref(`
					<img src="https://jmy-pic.baidu.com/0/pic/-176321719_-601773486_1572144746.jpg" />
					<img src="https://jmy-pic.baidu.com/0/pic/1033717712_-304473069_-882221312.jpg" />
					<img src="https://jmy-pic.baidu.com/0/pic/1592490653_941403003_-807172097.jpg" />
					<img src="https://jmy-pic.baidu.com/0/pic/-1127774197_-181223030_-1916718040.jpg" />
					<img src="https://jmy-pic.baidu.com/0/pic/-1336829950_1714352260_1332352068.jpg" />
					
					
				`)
</script>

<style lang="scss" scoped>
	.car-rich {
		margin-top: 28rpx;
		padding: 24rpx;
		box-sizing: border-box;
		border-radius: 16rpx;
		background: #FFFFFF;

		.title {
			font-size: 36rpx;
			font-family: PingFang SC-Bold, PingFang SC;
			font-weight: bold;
			color: #333333;
		}

		.con {
			margin-top: 24rpx;

			.reson {
				padding-bottom: 20rpx;
			}

			.img {
				width: 100%;

				image {
					width: 750rpx;
					height: auto;
					display: block;
				}
			}
		}
	}
</style>